<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('seal/sendmail_log/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('RECORD_ID') ?>', name: 'id', width: 45,},
                        {display: '<?= translate('AREA_NUM') ?>', name: 'areanum', width: 30,},
                        {display: '<?= translate('SEND_TYPE') ?>', name: 'mailtype', width: 45,},
                        {display: '<?= translate('ROLE_IDS') ?>', name: 'roleids', width: 100,},
                        {display: '<?= translate('MAIL_TITLE') ?>', name: 'mail_title', width: 100,},
                        {display: '<?= translate('MAIL_CONTENT') ?>', name: 'mail_content', width: 100,},
                        {display: '<?= translate('ITEM_ID0') ?>', name: 'itemid0', width: 30,},
                        {display: '<?= translate('ITEM_NUM0') ?>', name: 'amount0', width: 30,},
                        {display: '<?= translate('ITEM_ID1') ?>', name: 'itemid1', width: 30,},
                        {display: '<?= translate('ITEM_NUM1') ?>', name: 'amount1', width: 30,},
                        {display: '<?= translate('ITEM_ID2') ?>', name: 'itemid2', width: 30,},
                        {display: '<?= translate('ITEM_NUM2') ?>', name: 'amount2', width: 30,},
                        {display: '<?= translate('ITEM_ID3') ?>', name: 'itemid3', width: 30,},
                        {display: '<?= translate('ITEM_NUM3') ?>', name: 'amount3', width: 30,},
                    ],
                    buttons: [
                        //{name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {separator: true}
                    ],
                    searchitems: true,
                }));
                SG.admin = $.extend(SG.admin, {
                    //add_url: '<?= site_url("seal/mail/send") ?>',
                });

            });
        </script>
    </body>
</html>
